﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;

namespace FutureApp.Navigation.Dto
{
    /// <summary>
    /// 菜单实体DTO
    /// </summary>
    public class MenuEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 菜单编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 菜单排序号
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 菜单访问链接
        /// </summary>
        public string NavigationUrl { get; set; }

        /// <summary>
        /// 需要身份验证
        /// </summary>
        public bool RequiresAuthentication { get; set; }

        /// <summary>
        /// 身份验证权限名称
        /// </summary>
        public string RequiredPermission { get; set; }

        /// <summary>
        /// 子菜单
        /// </summary>
        public ICollection<MenuEntityDto> Menus { get; set; }
    }
}
